﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AddMesh : MonoBehaviour
{


    MeshRenderer[] _meshRender;
    private void Start()
    {
        _meshRender = GetComponentsInChildren<MeshRenderer>();
        for (int i = 0; i < _meshRender.Length; i++)
        {
            _meshRender[i].gameObject.AddComponent<MeshCollider>();
        }
    }
}
